package com.ljf.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljf.admin.POJO.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: lijinfeng
 * @Date: 2022/4/21
 * @Description 描述:
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    int updateBatch(List<SysMenu> list);

    int updateBatchSelective(List<SysMenu> list);

    int batchInsert(@Param("list") List<SysMenu> list);

    List<SysMenu> selectMenuListByRoleId(Long roleId);

    List<SysMenu> getListByUserId(@Param("userId") Long userId);

    List<Long> getChildrenMenuIdList(@Param("menus") Long[] menus);

    List<SysMenu> getListByRoleId(@Param("roleId") Long roleId);
}
